﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>search</title>


    <!-- WinJSContrib.Core references -->
    <script src="./scripts/jquery-2.1.1.js"></script>
    <script src="./scripts/winjscontrib/jquery.mcnext.WinJS.js"></script>
    <script src="./scripts/winjscontrib/mcnext.ui.utils.js"></script>

    <!-- WinJSContrib.Search references -->
    <script src="./scripts/winjscontrib/mcnext.search.js"></script>

    <link href="search.css" rel="stylesheet" />
    <script src="search.js"></script>
</head>
<body>
    <div class="search fragment">
        <header aria-label="Header content" role="banner">
            <button class="win-backbutton" aria-label="Back" disabled type="button"></button>
            <h1 class="titlearea win-type-ellipsis">
                <span class="pagetitle">Search</span>
            </h1>
            <div class="codelink" data-codepage="./pages/search/search"><span class="symbol">&#xE160;</span><span class="text">show me the code !</span></div>
        </header>
        <section aria-label="Main content" role="main">
            <p>
                <input type="search" id="searchtxt" />
                <button id="btnSearch" data-page-action="doSearch">search</button>
                <button id="btnSearchAsync" data-page-action="searchAsync">async search</button>
            </p>
            <p>
                <input type="text" id="indexbox" /><button data-page-action="addToIndex">Index this</button>
            </p>
            <p>
                <button data-page-action="indexWiktionary">Index wiktionary dump</button>
            </p>
            <p><input type="range" id="progress" min="0" max="100" readonly style="opacity:0" /></p>
            <p>index has <span id="indexCount"></span> items</p>
            <p>
                <button data-page-action="clearIndex">Clear</button>
                <button data-page-action="addItems" data-page-action-args='{ "size":500 }'>Add 500 items</button>
                <button data-page-action="addItems" data-page-action-args='{ "size": 2000 }'>Add 2 000 items</button>
                <button data-page-action="addItems" data-page-action-args='{ "size": 20000 }' >Add 20 000 items</button>
                <button data-page-action="addItems" data-page-action-args='{ "size": 100000 }'>Add 100 000 items</button>
                <button data-page-action="addItems" data-page-action-args='{ "size": 1000000 }'>Add 1 000 000 items</button>

            </p>
            <p id="searchmessage"></p>
            <ul id="searchresults"></ul>
        </section>
    </div>
</body>
</html>
